﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page
	import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
	}
%>
<%@page import="java.util.Date" %>
<%@page import="java.text.SimpleDateFormat" %>
<%
    SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    String date= format.format(new Date());
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>红点e贷服务管理系统</title>
<jsp:include page="../../../global/assets_common.jsp" />
<style type="text/css">
.input-group .form-control{
	z-index:0;
}
body{
	font-size: 10px;
}
.ui-widget-header{
	border: none;
}
</style>
	</head>
	<body>
		<div id="toolbar" class="ui-widget-header ui-corner-all">
		<button id="btu_search">搜索</button>
		<button id="btu_insert">审核</button>
		<button id="btu_view">查看</button>
	</div>
	<div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
		<!--提示框 开始-->
		<div id="dialog_alert" title="提示" class="row ui-helper-hidden"></div>
		<!--提示框结束-->
		<!--搜索模态框 开始-->
	<div id="dialog_search" title="查询搜索" class="row ui-helper-hidden">
		<form class="form">
		<div class="form-group">
				<label for="s_sqrq" class="control-label col-sm-2">申请日期:</label>
				<div class="col-sm-10">
					<div class="input-group">
					<input type="text" id="s_minsqrq" name="startDate" class="form-control"
						readonly="readonly"/>
					<span class="input-group-addon">至</span>
					<input type="text" id="s_maxsqrq" name="endDate" class="form-control"
						readonly="readonly"/>
				</div>
				</div>
			</div>
		<div class="form-group">
				<label for="s_zrryhm" class="control-label col-sm-2">转让人用户名:</label>
				<div class="col-sm-4">
					<input type="text" id="s_zrryhm" name="czrr" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="s_zrzt" class="control-label col-sm-2">转让状态:</label>
				<div class="col-sm-4">
					<select id="s_zrzt" name="czrzt" class="form-control" >
					<option value=''>全部</option>
					<option value='00'>申请中</option>
					<option value='01'>审核通过</option>
					<option value='02'>审核失败</option>
					<option value='03'>转让成功</option>
					<option value='04'>转让失败</option>
					</select>
				</div>
			</div>
		</form>
	</div>
	<!--搜索模态框 结束-->
	<!--查看模态框  开始 -->
	<div id="dialog_view" title="查看信息" class="row ui-helper-hidden">
		<form class="form">
			<div class="form-group">
				<label for="v_xmmc" class="control-label col-sm-2">项目名称:</label>
				<div class="col-sm-2">
					<input type="text" id="v_xmmc"  class="form-control"
						readonly="readonly"/>
				</div>
			</div>

			<div class="form-group">
				<label for="v_xmyzje" class="control-label col-sm-2">项目原总金额:</label>
				<div class="col-sm-2">
					<input type="text" id="v_xmyzje"  class="form-control"
						readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="v_xmdqrq" class="control-label col-sm-2">项目到期日期:</label>
				<div class="col-sm-2">
					<input type="text" id="v_xmdqrq" class="form-control"
						readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="v_ytzje" class="control-label col-sm-2">原投资金额(转让金额):</label>
				<div class="col-sm-2">
					<input type="text" id="v_ytzje"  class="form-control" readonly="readonly"/> 
				</div>
			</div>
			<div class="form-group">
				<label for="v_nhsyl" class="control-label col-sm-2">年化收益率:</label>
				<div class="col-sm-2">
						<input type="text" id="v_nhsyl" class="form-control" readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="v_tzhkzt" class="control-label col-sm-2">投资汇款状态:</label>
				<div class="col-sm-2">
						<input type="text" id="v_tzhkzt" class="form-control" readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="v_tzsyqx" class="control-label col-sm-2">投资剩余期限(天):</label>
				<div class="col-sm-2">
					<input type="text" id="v_tzsyqx"class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrsxfbl" class="control-label col-sm-2">转让手续费比例:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrsxfbl"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrzzsxf" class="control-label col-sm-2">转让最终手续费:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrzzsxf"class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrmc" class="control-label col-sm-2">转让名称:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrmc"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrmssm" class="control-label col-sm-2">转让描述说明:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrmssm"class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrhsjdzje" class="control-label col-sm-2">转让后实际到账金额:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrhsjdzje" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrzt" class="control-label col-sm-2">转让状态:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrzt"class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrly" class="control-label col-sm-2">转让来源:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrly"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrryhm" class="control-label col-sm-2">转让人用户名:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrryhm" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_zrsqsj" class="control-label col-sm-2">转让申请时间:</label>
				<div class="col-sm-2">
					<input type="text" id="v_zrsqsj" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_shr" class="control-label col-sm-2">审核人:</label>
				<div class="col-sm-2">
					<input type="text" id="v_shr"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_shrq" class="control-label col-sm-2">审核日期:</label>
				<div class="col-sm-2">
					<input type="text" id="v_shrq"class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="v_shbz" class="control-label col-sm-2">审核备注:</label>
				<div class="col-sm-2">
					<input type="text" id="v_shbz" class="form-control"
						readonly="readonly" />
				</div>
			</div>
		</form>
			<div class="col-sm-12">
				<table id="vGrid"></table>
				<div id="vGridPager"></div>
			</div>
	</div>
	<!--查看模态框 结束-->
	
	<!--新增模态框 开始-->
	<div id="dialog_insert" title="审核" class="row ui-helper-hidden">
		<form class="form" id="form_insert">
			<div class="form-group">
				<label for="i_xmmc" class="control-label col-sm-2">项目名称:</label>
				<div class="col-sm-2">
					<input type="text" id="i_xmmc"  name="i_xmmc" class="form-control"
						readonly="readonly"/>
				</div>
			</div>

			<div class="form-group">
				<label for="i_xmyzje" class="control-label col-sm-2">项目原总金额:</label>
				<div class="col-sm-2">
					<input type="text" id="i_xmyzje"  name="i_xmyzje" class="form-control"
						readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_xmdqrq" class="control-label col-sm-2">项目到期日期:</label>
				<div class="col-sm-2">
					<input type="text" id="i_xmdqrq" name="i_xmdqrq" class="form-control"
						readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_ytzje" class="control-label col-sm-2">原投资金额(转让金额):</label>
				<div class="col-sm-2">
					<input type="text" id="i_ytzje" name="i_ytzje" class="form-control" readonly="readonly"/> 
				</div>
			</div>
			<div class="form-group">
				<label for="i_nhsyl" class="control-label col-sm-2">年化收益率:</label>
				<div class="col-sm-2">
						<input type="text" id="i_nhsyl" name="i_nhsyl" class="form-control" readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_tzhkzt" class="control-label col-sm-2">投资汇款状态:</label>
				<div class="col-sm-2">
						<input type="text" id="i_tzhkzt" name="i_tzhkzt" class="form-control" readonly="readonly"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_tzsyqx" class="control-label col-sm-2">投资剩余期限(天):</label>
				<div class="col-sm-2">
					<input type="text" id="i_tzsyqx" name="i_tzsyqx" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrsxfbl" class="control-label col-sm-2">转让手续费比例:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrsxfbl" name="i_zrsxfbl" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrzzsxf" class="control-label col-sm-2">转让最终手续费:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrzzsxf" name="i_zrzzsxf" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_tzrxxid" class="control-label col-sm-2">投资人信息ID:</label>
				<div class="col-sm-2">
					<input type="text" id="i_tzrxxid" name="tzrxxid" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrmc" class="control-label col-sm-2">转让名称:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrmc" name="i_zrmc" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrmssm" class="control-label col-sm-2">转让描述说明:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrmssm" name="i_zrmssm" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrhsjdzje" class="control-label col-sm-2">转让后实际到账金额:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrhsjdzje" name="i_zrhsjdzje" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrzt" class="control-label col-sm-2">转让状态:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrzt" name="i_zrzt" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrly" class="control-label col-sm-2">转让来源:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrly" name="zrly"  class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrsqsj" class="control-label col-sm-2">转让申请时间:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrsqsj" name="i_zrsqsj" class="form-control"
						readonly="readonly" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_zrryhm" class="control-label col-sm-2">转让人用户名:</label>
				<div class="col-sm-2">
					<input type="text" id="i_zrryhm" name="i_zrryhm" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="i_shr" class="control-label col-sm-2">审核人:</label>
				<div class="col-sm-2">
					<input type="text" id="i_shr" name="shr" class="form-control"  value="<%=gyh%>"/>
				</div>
			</div>
	
		<div class="form-group">
				<label for="i_shzt" class="control-label col-sm-2">审核状态:</label>
				<div class="col-sm-2">
					<select id="i_shzt" name="shzt" class="form-control">
					<option  value='01'>通过</option>
					<option value='02'>不通过</option>
					</select>
				</div>
			</div>
	
	
			<div class="form-group">
				<label for="i_shrq" class="control-label col-sm-2">审核日期:</label>
				<div class="col-sm-2">
					<input type="text" id="i_shrq" name="i_shrq"  class="form-control"  value="<%=date%>"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_shbz" class="control-label col-sm-2">审核备注:</label>
				<div class="col-sm-2">
					<textarea id="i_shbz" name="shbz"  rows="1.5"  class="form-control" >
					</textarea>
				</div>
			</div>
		</form>
	</div>
	<!--新增模态框 结束-->
	
</body>
<script src="${basePath}/global/js/assets/p2p.wdzr.wdzrSH.js"></script>
</html>